//
//  NSArray+BLEAdd.h
//  BLESDK
//
//  Created by 李阳 on 2018/5/24.
//

#import <Foundation/Foundation.h>

@interface NSArray<ObjectType> (BLEAdd)

- (NSArray *)ble_map:(id (^)(ObjectType obj, NSUInteger idx))block;

- (ObjectType)ble_match:(BOOL (^)(ObjectType obj))block;

@end


@interface NSObject (BLEAdd)

#pragma mark KVO

- (void)ble_addObserverBlockForKeyPath:(NSString*)keyPath block:(void (^)(id _Nonnull obj, _Nullable id oldVal, _Nullable id newVal))block;

- (void)ble_removeObserverBlocksForKeyPath:(NSString*)keyPath;

- (void)ble_removeObserverBlocks;

@end

@interface NSDateFormatter (BLEAdd)

+ (NSDateFormatter *)bleFormatter;

@end
